import { BaseItem } from "../../../common/BaseItem";
import { GlobalClass } from "../../../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../../../resource/ImagesConst";
import { ItemData } from "../../../../resource/info/ItemData";
type int = number;
//class SkillRuneHandbookRuneItem
    
    export  class SkillRuneHandbookRuneItem /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.item = new BaseItem();
            this.lock = GlobalClass.getBitmap(ImagesConst.NotEnable);
            this.lock.x = 0;
            this.lock.y = 0;
            this.addChild(this.lock);
            this.item.width = 60;
            this.item.height = 60;
            this.item.isDragAble = false;
            this.item.isDropAble = false;
            this.item.x = 3;
            this.item.y = 3;
            this.addChild(this.item);
            return;
        }

        public set toolTipData(arg1)
        {
            this._toolTipData = arg1;
            this.item.toolTipDataFunction = this.getToolTipData;
            return;
        }

        public getToolTipData(arg1)
        {
            return this._toolTipData;
        }

        public update(arg1: int, arg2: int=1): void
        {
            if (arg1 == 0) 
            {
                this.item.visible = false;
            }
            else 
            {
                this.item.amount = arg2;
                this.item.itemData = new ItemData(arg1);
                this.item.visible = true;
            }
            return;
        }

        /* internal */ /* var */lock: Object /* flash.display.Bitmap */;

        public /* var */item: BaseItem;

        /* internal */ /* var */_toolTipData;
    }
